home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 June / Macworld (1999-06).dmg / Shareware World / Info / For Developers / MacZoop2.0.sea / MacZoop2.0 / Required Classes / Compatibility.h next >
Text File  |  1998-10-29  |  2KB  |  82 lines

  1. /*************************************************************************************************
  2. *
  3. *
  4. *            MacZoop - "the framework for the rest of us"         
  5. *
  6. *
  7. *
  8. *            Compatibility.h            -- allow old universal headers to be used with new code
  9. *
  10. *
  11. *
  12. *
  13. *
  14. *            © 1996, Graham Cox
  15. *
  16. *
  17. *
  18. *
  19. *************************************************************************************************/
  20.  
  21.  
  22. #pragma once
  23.  
  24. #ifndef    __COMPATIBILITY__
  25. #define __COMPATIBILITY__
  26.  
  27. /*
  28.  
  29. MacZoop 1.8.2 and later requires at least version 3.0.1 of Universal Headers to compile.
  30. However, to keep older compiler/header combinations in the frame, this file will be
  31. included which maps the newer names to the older ones, so no-one has to worry about that.
  32.  
  33.  
  34. */
  35.  
  36. // font constants:
  37.  
  38. enum
  39. {
  40.     kFontIDNewYork         = newYork,
  41.     kFontIDGeneva         = geneva,
  42.     kFontIDMonaco         = monaco,
  43.     kFontIDVenice         = venice,
  44.     kFontIDLondon         = london,
  45.     kFontIDAthens         = athens,
  46.     kFontIDSanFrancisco = sanFran,
  47.     kFontIDToronto         = toronto,
  48.     kFontIDCairo         = cairo,
  49.     kFontIDLosAngeles     = losAngeles,
  50.     kFontIDTimes         = times,
  51.     kFontIDHelvetica     = helvetica,
  52.     kFontIDCourier         = courier,
  53.     kFontIDSymbol         = symbol,
  54.     kFontIDMobile         = mobile
  55. };
  56.  
  57. // drag manager constants:
  58.  
  59. enum
  60. {
  61.     kDragTrackingEnterHandler    = 1,                            /* drag has entered handler*/
  62.     kDragTrackingEnterWindow    = 2,                            /* drag has entered window*/
  63.     kDragTrackingInWindow        = 3,                            /* drag is moving within window*/
  64.     kDragTrackingLeaveWindow    = 4,                            /* drag has exited window*/
  65.     kDragTrackingLeaveHandler    = 5                                /* drag has exited handler*/
  66. };
  67.  
  68. // window zooming:
  69.  
  70. enum
  71. {
  72.     kZoomNoAcceleration            = 0,                            /* use linear interpolation*/
  73.     kZoomAccelerate                = 1,                            /* ramp up step size*/
  74.     kZoomDecelerate                = 2                                /* ramp down step size*/
  75. };
  76.  
  77.  
  78. #define        kMouseUpOutOfSlop    0x80008000                        // constant for DragGrayRgn
  79.  
  80.  
  81. #endif
  82.